package cn.tedu.csmallproducts.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AttributeUpdateDTO implements Serializable {
    @ApiModelProperty(value = "ID", required = true, example = "属性名称")
    @NotNull(message = "必须填写属性ID")
    private Long id;

    @ApiModelProperty(value = "名称", required = true, example = "属性名称")
    @NotNull(message = "必须填写属性名称")
    private String name;

    @ApiModelProperty(value = "属性简介", required = true, example = "这是一个简介")
    @NotNull(message = "必须填写属性简介")
    private String description;

    @ApiModelProperty(value = "属性类型", required = true, example = "1")
    private Integer type;

    @ApiModelProperty(value = "输入类型", required = true, example = "2")
    private Integer inputType;

    @ApiModelProperty(value = "备选值列表", required = true, example = "备选值1")
    @NotNull(message = "必须填写属性关键字")
    private String valueList;

    @ApiModelProperty(value = "计量单位", required = true, example = "KG")
    @NotNull(message = "必须填写属性名称排序")
    private String unit;

    @ApiModelProperty(value = "排序序号", required = true, example = "33")
    @NotNull(message = "必须填写排序序号类型")
    private Integer sort;

    @ApiModelProperty(value = "属性模板ID", required = true, example = "22")
    @NotNull(message = "必须填写模板ID")
    private Long templateId;
}
